import { en } from "element-plus/es/locales.mjs";

export default {
  // 通用
  common: {
    confirm: "确定",
    cancel: "取消",
    save: "保存",
    reset: "重置",
    search: "搜索",
    edit: "编辑",
    view: "查看",
    delete: "删除",
    add: "添加",
    submit: "提交",
    back: "返回",
    close: "关闭",
    loading: "加载中...",
    success: "成功",
    error: "错误",
    warning: "警告",
    info: "信息",
    enterFullscreen: "进入全屏",
    exitFullscreen: "退出全屏",
    disable: "否",
    enable: "是",
    operation: "操作",
    input_placeholder: "请输入{type}",
    select_placeholder: "请选择{type}",
    addChild: "新增子项",
  },

  function: {
    syncCache: "同步缓存",
    addItem: "新增{type}",
    deleteItem: "删除{type}",
    deleteItems: "删除选中的{type}",
    editItem: "编辑{type}",
    viewItem: "查看{type}",
  },

  table: {
    columnSettings: "列设置",
    loadColumnSettingsFailed: "加载列设置失败",
    mini: "迷你",
    small: "小",
    medium: "中",
    large: "大",
    expandCollapse: "展开/折叠",
  },

  // 导航和菜单
  nav: {
    home: "首页",
    test1: "测试1",
    projectDoc: "项目文档",
    globalSettings: "全局设置",
    layoutSwitch: "布局切换",
    userProfile: "个人首页",
    changePassword: "修改密码",
    logout: "退出登录",
    internationalSetting: "国际化设置",
  },

  // 布局设置
  layout: {
    themeStyleSettings: "主题风格设置",
    themeStyle: "主题风格",
    themeColor: "主题颜色",
    systemLayoutSettings: "系统布局设置",
    menuPosition: "菜单位置",
    left: "左侧",
    top: "顶部",
    interfaceDisplay: "界面显示",
    showBreadcrumb: "显示面包屑",
    showTabs: "显示标签页",
    fixedHeader: "固定顶栏",
  },

  // 设置
  setting: {
    contentAndDisplay: "内容与显示",
    international: "国际化",
    other: "其他",
  },

  // 国际化设置
  internationalSetting: {
    namespace: "命名空间",
    keyPath: "键路径",
    value: "翻译值",
    status: "是否启用",
    description: "描述信息",
  },

  // 消息提示
  message: {
    searchSuccess: "搜索成功",
    addSuccess: "新增成功",
    addFailed: "新增失败",
    modifySuccess: "修改成功",
    modifyFailed: "修改失败",
    layoutSaved: "布局配置已保存",
    layoutReset: "布局配置已重置",
    passwordChangeSuccess: "密码修改成功",
    logoutSuccess: "退出登录成功",
    languageSwitched: "语言切换成功",
    languageWillTakeEffect: "语言将在页面刷新后生效",
    operationSuccess: "操作成功",
    operationFailed: "操作失败",
    deleteSuccess: "删除成功",
    deleteFailed: "删除失败",
    deleteCanceled: "已取消删除",
    selectItemsToDelete: "请选择要删除的数据",
    confirmDelete: "确定要删除选中的数据吗？",
    deleteConfirm: "删除确认",
    enterFullscreenSuccess: "已进入全屏模式",
    exitFullscreenSuccess: "已退出全屏模式",
    fullscreenError: "全屏操作失败",
    queryFailed: "查询失败",
  },

  // 语言切换
  language: {
    current: "当前语言：中文",
    switch: "点击切换到英文",
    chinese: "中文",
    english: "English",
    ch: "中文",
    en: "英文",
  },

  // 表单验证
  validation: {
    required: "此字段为必填项",
    email: "请输入有效的邮箱地址",
    phone: "请输入有效的手机号码",
    password: "密码长度至少6位",
    confirmPassword: "两次输入的密码不一致",
  },

  // 页面标题
  title: {
    dashboard: "仪表盘",
    userManagement: "用户管理",
    roleManagement: "角色管理",
    menuManagement: "菜单管理",
    systemSettings: "系统设置",
  },

  // 测试页面
  test: {
    content: "内容",
    footer: "页脚",
    option1: "选项1",
    option2: "选项2",
    option3: "选项3",
    option1_1: "选项1-1",
    option1_2: "选项1-2",
    option2_1: "选项2-1",
    option2_2: "选项2-2",
    inputField: "输入框",
    selectField: "下拉选择",
    treeSelect: "树选择器",
    datePicker: "日期选择器",
    switchSelect: "开关选择器",
  },

  // 首页
  home: {
    welcomeTitle: "欢迎使用后台管理系统",
    welcomeDesc: "这是一个功能强大的后台管理系统，集成了多种实用功能和组件",
    userTotal: "用户总数",
    goodsTotal: "商品总数",
    orderTotal: "订单总数",
    totalIncome: "总收入",
    todoList: "待办事项",
    todoItems: "项",
    systemNotice: "系统公告",
    recentUpdate: "最近更新",
    projectProgress: "项目进度",
    realTimeMonitor: "实时监控",
    systemUpdate: "系统更新",
    featureOptimization: "功能优化",
    bugFix: "Bug修复",
    dataBackup: "数据备份",
    inProgress: "进行中",
    pending: "待处理",
    completed: "已完成",
    systemUpgradeComplete: "系统升级完成",
    newFeatureRelease: "新功能发布",
    systemMaintenanceNotice: "系统维护通知",
    importantUpdate: "重要更新",
    projectA: "项目A",
    projectB: "项目B",
    projectC: "项目C",
    projectD: "项目D",
    treeSelect: "树选择器",
    datePicker: "日期选择器",
    switchSelect: "开关选择器",
  },

  // 组件
  component: {
    search: {
      search_button: "搜索",
      reset_button: "重置",
      input_placeholder: "请输入",
      select_placeholder: "请选择",
    },
    table: {
      noFixed: "不固定",
      leftFixed: "左固定",
      rightFixed: "右固定",
    },
  },

  // 表单设计器
  formDesigner: {
    // 组件面板
    componentPanel: {
      components: "组件",
      outline: "大纲",
      basicFormComponents: "基础表单组件",
      contentDisplayComponents: "内容展示组件",
      layoutComponents: "布局组件",
      todoComponentsList: "待开发组件列表：",
      todoComponents:
        "Autocomplete 自动补全输入框、InputTag 组件、Rate 评分、Mention 提及、Virtualized Select 虚拟化选择器、Upload 上传等",
      noFormItems: "暂无表单项",
      column: "列",
      unknownComponent: "未知组件",
      // 组件类型
      componentTypes: {
        input: "输入框",
        number: "计数器",
        textarea: "文本域",
        select: "选择器",
        radio: "单选框",
        checkbox: "多选框",
        date: "日期选择",
        time: "时间选择",
        switch: "开关",
        slider: "滑块",
        treeselect: "树形选择器",
        cascader: "级联选择器",
        tree: "树形控件",
        descriptions: "描述列表",
        grid: "栅格布局",
      },
      // 组件类型名称（用于大纲显示）
      componentTypeNames: {
        input: "输入框",
        number: "数字输入",
        textarea: "文本域",
        select: "选择器",
        cascader: "级联选择器",
        radio: "单选框",
        checkbox: "多选框",
        date: "日期选择",
        time: "时间选择",
        switch: "开关",
        slider: "滑块",
        grid: "栅格布局",
        tree: "树形控件",
        treeselect: "树形选择器",
        descriptions: "描述列表",
        layoutGrid: "布局格子",
      },
    },

    // 设计画布
    designCanvas: {
      // 工具栏按钮
      toolbar: {
        import: "导入",
        export: "导出",
        preview: "预览",
        generateCode: "生成代码",
        clear: "清空",
      },
      // 栅格布局
      grid: {
        addColumn: "添加栅格",
        deleteColumn: "删除栅格",
        gridSpace: "栅格间距",
        colWidth: "列宽",
      },
      // 空状态提示
      empty: {
        dragHere: "拖拽组件到此处",
        startDesign: "拖拽左侧组件到此处开始设计表单",
        emptyComponent: "请选择一个组件",
      },
    },

    // 属性面板
    propertyPanel: {
      // 标签页
      tabs: {
        component: "组件属性",
        form: "表单属性",
      },

      // 基础配置
      basic: {
        title: "基础配置",
        componentType: "组件类型",
        fieldId: "字段ID",
        fieldName: "字段名称",
        labelWidth: "标签宽度",
        placeholder: "占位符",
        fieldIdTooltip:
          "组件对应的字段ID用于与组件的数据进行绑定。字段ID需以字母开头，以确保能够正确识别。",
        widthPlaceholder: "请输入宽度",
        clickToSwitchUnit: "点击切换单位",
        size: "尺寸",
        large: "大",
        default: "默认",
        small: "小",
      },

      // 属性配置
      properties: {
        title: "属性配置",
        disabled: "是否禁用",
        clearable: "可清空",
        multiple: "多选",
        filterable: "可过滤",
        collapseTags: "折叠标签",
        maxCollapseTags: "最大折叠数",
        multipleLimit: "最大选择数",
        showBorder: "显示边框",
        buttonStyle: "按钮形式",
        minSelection: "最小选择数",
        maxSelection: "最大选择数",
      },

      // 输入框属性
      input: {
        inputType: "输入类型",
        maxLength: "最大长度",
        showWordLimit: "显示字数",
        types: {
          text: "文本",
          password: "密码",
          email: "邮箱",
          number: "数字",
          tel: "电话",
          url: "网址",
        },
      },

      // 数字输入框属性
      number: {
        min: "最小值",
        max: "最大值",
        minValue: "最小值",
        maxValue: "最大值",
        step: "步长",
        precision: "精度",
        stepStrictly: "严格步进",
        controlsPosition: "按钮位置",
        controlsPositionPlaceholder: "请选择按钮位置",
        positions: {
          right: "右侧",
          both: "两侧",
        },
      },

      // 文本域属性
      textarea: {
        rows: "行数",
        autosize: "高度自适应",
        minRows: "最小行数",
        maxRows: "最大行数",
        maxLength: "最大长度",
        showWordLimit: "显示字数",
        switchToSimple: "切换为简单模式",
        switchToAdvanced: "切换为高级模式",
      },

      // 日期选择器属性
      date: {
        clearable: "可清空",
        multiple: "可多选",
        rangeable: "范围选择",
        dateType: "选择器类型",
        format: "日期格式",
        dates: "多个日期",
        months: "多个月份",
        years: "多个年份",
        date: "日期",
        datetime: "日期时间",
        year: "年",
        month: "月",
        week: "周",
        daterange: "日期范围",
        datetimerange: "日期时间范围",
        yearrange: "年份范围",
        monthrange: "月份范围",
      },

      // 开关属性
      switch: {
        activeText: "激活文本",
        inactiveText: "未激活文本",
        activeValue: "激活值",
        inactiveValue: "未激活值",
        boolean: "布尔",
        string: "字符串",
        number: "数字",
        activeTextPlaceholder: "请输入激活时显示的文本",
        inactiveTextPlaceholder: "请输入未激活时显示的文本",
      },

      // 滑块属性
      slider: {
        minValue: "最小值",
        maxValue: "最大值",
        step: "步长",
        showInput: "显示输入框",
        showInputControls: "显示输入框控制按钮",
        showStops: "显示间断点",
        showTooltip: "显示提示",
        range: "范围选择",
        vertical: "垂直模式",
        height: "滑块高度",
      },

      // 树选择器属性
      treeselect: {
        clearable: "可清空",
        multiple: "多选",
        showCheckbox: "显示复选框",
        checkStrictly: "严格模式",
        defaultExpandAll: "默认展开所有",
        expandOnClickNode: "点击节点展开",
        checkOnClickNode: "点击节点选中",
        filterable: "可过滤",
        accordion: "手风琴模式",
        indent: "缩进距离",
        nodeKey: "节点键名",
        nodeKeyTooltip:
          "每个树节点用来作为唯一标识的属性，整棵树应该是唯一的。",
        nodeKeyPlaceholder: "请输入节点键名",
        dataConfig: "数据配置",
        configData: "配置数据",
      },

      // 树形控件属性
      tree: {
        showCheckbox: "显示复选框",
        checkStrictly: "严格模式",
        defaultExpandAll: "默认展开所有",
        expandOnClickNode: "点击节点展开",
        checkOnClickNode: "点击节点选中",
        filterable: "可过滤",
        accordion: "手风琴模式",
        indent: "缩进距离",
        draggable: "可拖拽",
        nodeKey: "节点键名",
        defaultValue: "请输入默认值",
        dataConfig: "数据配置",
        configData: "配置数据",
        configDialogTitle: "配置{type}数据",
        treeControl: "树形控件",
        treeSelect: "树形选择器",
        cascader: "级联选择器",
        descriptions: "描述项",
        dataFormatTitle: "数据格式说明",
        dataFormatRule1: "数据必须是有效的JSON数组格式",
        dataFormatRule2Tree:
          "树形控件需要包含<code>id</code>、<code>label</code> 字段",
        dataFormatRule2Other:
          "树形选择器需要包含<code>label</code>、<code>value</code>字段",
        dataFormatRule3Other: "<code>value</code>字段用于表单提交的值",
        dataFormatRule4: "子节点使用<code>children</code>字段",
        dataFormatRule5:
          "每个节点可以使用 <code>disabled</code> 用以禁用该节点",
        exampleFormat: "示例格式：",
        exampleNodeName: "节点名称",
        exampleChildNode: "子节点",
        defaultId: "默认ID",
        formatJson: "格式化",
        compressJson: "压缩",
        validateJson: "验证",
        useExampleData: "使用示例数据",
        jsonPlaceholder: "请输入JSON格式的树形数据...",
        cancel: "取消",
        save: "保存",
      },

      descriptions: {
        configTitle: "配置描述项数据",
        titlePlaceholder: "请输入标题",
        sizePlaceholder: "请选择尺寸",
        directionPlaceholder: "请选择排列方向",
        extraPlaceholder: "请输入操作区域内容",
        itemsConfig: "描述项配置",
        configItems: "配置描述项",
        direction: "排列方向",
        horizontal: "水平",
        vertical: "垂直",
        extra: "操作区域",

        dataFormatTitle: "数据格式说明",
        dataFormatRule1: "数据必须是有效的JSON数组格式",
        dataFormatRule2:
          "每个描述项需要包含 <code>label</code> 和 <code>value</code> 字段",
        dataFormatRule3: "<code>span</code> 字段用于设置占用的列数（可选）",
        dataFormatRule4: "<code>align</code> 字段用于设置对齐方式（可选）",
        dataFormatRule5:
          "<code>className</code> 字段用于自定义样式类名（可选）",
        exampleFormat: "示例格式：",
        useExampleData: "使用示例数据",
        jsonPlaceholder: "请输入JSON格式的描述项数据...",
        cancel: "取消",
        save: "保存",
        exampleUsername: "用户名",
        exampleUsernameValue: "张三",
        examplePhone: "手机号",
        examplePhoneValue: "18888888888",
        exampleAddress: "居住地",
        exampleAddressValue: "北京市朝阳区",
        exampleRemark: "备注",
        exampleRemarkValue: "这是一段备注信息",
      },

      // 按钮属性
      button: {
        typePlaceholder: "请选择类型",
      },

      // 级联选择器属性
      cascader: {
        separator: "分隔符",
        separatorPlaceholder: "请输入分隔符",
        showAllLevels: "显示完整路径",
        expandTrigger: "展开触发方式",
        expandTriggerPlaceholder: "请选择展开触发方式",
        checkStrictly: "严格模式",
        filterable: "可过滤",
        dataConfig: "数据配置",
        configData: "配置数据",
        configTitle: "配置级联选择器数据",
        triggers: {
          click: "点击",
          hover: "悬停",
        },
        dataFormatTitle: "数据格式说明",
        dataFormatRule1: "数据必须是有效的JSON数组格式",
        dataFormatRule2: "每个选项需要包含value和label字段",
        dataFormatRule3: "子选项使用children字段",
        dataFormatRule4: "可选字段：disabled（禁用状态）",
        exampleFormat: "示例格式：",
        formatJson: "格式化",
        compressJson: "压缩",
        validateJson: "验证",
        useExampleData: "使用示例数据",
        jsonPlaceholder: "请输入JSON格式的级联数据...",
        cancel: "取消",
        save: "保存",
      },

      // 验证配置
      validation: {
        title: "验证配置",
        required: "是否必填",
        requiredMessage: "提示语",
        trigger: "触发时机",
        validationRules: "验证规则",
        messagePlaceholder: "请输入提示语",
        typeSelectPlaceholder: "请选择验证类型",
        errorMessagePlaceholder: "请输入错误提示信息",
        triggerPlaceholder: "请选择触发时机",
        ruleValue: "规则值",
        addRule: "添加规则",
        deleteRule: "删除",
        triggerOptions: {
          blur: "失去焦点时",
          change: "值改变时",
        },
        ruleTypes: {
          min: "最小值",
          max: "最大值",
          integer: "整数验证",
          precision: "精度验证",
          minItems: "最少选择项",
          maxItems: "最多选择项",
          minLength: "最小长度",
          maxLength: "最大长度",
          pattern: "正则表达式",
          custom: "自定义",
        },
      },

      // 事件配置
      events: {
        title: "事件配置",
        setEvents: "设置事件",
        formEventConfig: "表单事件配置",
        componentEventConfig: "组件事件配置",
        eventList: "事件列表",
        selectEventPlaceholder: "选择事件类型",
        editEvent: "编辑事件: {event}",
        selectEvent: "请选择一个事件",
        delete: "删除",
        cancel: "取消",
        save: "保存",
        codeCommentInsertHere: "您的代码将插入到这里：",
        eventCodePlaceholder: "请输入事件处理代码...",
        submitCodePlaceholder: "请输入提交事件处理代码...",
        resetCodePlaceholder: "请输入重置事件处理代码...",
        validateCodePlaceholder: "请输入验证事件处理代码...",
        fieldValidateCodePlaceholder: "请输入字段验证事件处理代码...",
        clearValidateCodePlaceholder: "请输入清除验证事件处理代码...",
        validateWholeForm: "验证整个表单",
        formValidationPassed: "表单验证通过",
        formValidationFailed: "表单验证失败",
        formValidationError: "表单验证失败，请检查输入",
        validateSpecificField: "验证指定字段，请根据需要修改字段名",
        replaceWithActualFieldName: "请替换为实际字段名",
        fieldValidationFailed: "字段验证失败:",
        fieldValidationPassed: "字段验证通过",
        clearFormValidationState: "清除表单验证状态",
        formValidationStateCleared: "已清除表单验证状态",
        formData: "表单数据",
        submitSuccess: "提交成功！",
        checkFormData: "请检查表单数据",
        resetEventError: "执行重置事件时出错:",
        formValidationFailedMessage: "表单验证失败，请检查输入",
        // 事件类型标签
        inputEvent: "输入事件",
        valueChange: "值改变",
        focus: "获得焦点",
        blur: "失去焦点",
        clearEvent: "清空事件",
        visibilityChange: "可见性改变",
        removeTag: "移除标签",
        expandStateChange: "展开状态改变",
        nodeClick: "节点点击",
        checkboxChange: "复选框改变",
        nodeCheckboxClick: "节点复选框点击",
        currentNodeChange: "当前选中节点变化",
        nodeExpand: "节点展开",
        nodeCollapse: "节点折叠",
        clickEvent: "点击事件",
        keyDown: "键盘按下",
        keyUp: "键盘抬起",
        formSubmit: "表单提交",
        formReset: "表单重置",
        formValidate: "表单验证",
        fieldValidate: "字段验证",
        clearValidate: "清除验证",
      },

      // 表单配置
      formConfig: {
        labelWidth: "标签宽度",
        labelPosition: "标签位置",
        componentSize: "组件尺寸",
        showSubmitButton: "显示提交按钮",
        showResetButton: "显示重置按钮",
        formEvents: "表单事件",
        configureEvents: "配置事件",
        clickToSwitchUnit: "点击切换单位",
        // 标签位置选项
        rightAlign: "右对齐",
        leftAlign: "左对齐",
        topAlign: "顶部",
        // 组件尺寸选项
        large: "大",
        default: "默认",
        small: "小",
        // 是否选项
        yes: "是",
        no: "否",
      },

      // 选项配置
      options: {
        title: "选项配置",
        optionLabel: "选项标签",
        optionValue: "选项值",
        addOption: "添加选项",
        delete: "删除",
        configData: "配置数据",
        configuredItems: "已配置 {count} 个选项",
        configuredDataItems: "已配置 {count} 个数据项",
        clear: "清除",
      },

      // 占位符文本
      placeholders: {
        fieldId: "请输入字段ID",
        fieldName: "请输入字段名称",
        placeholder: "请输入占位符",
        selectInputType: "请选择输入类型",
        separator: "请输入分隔符",
        selectExpandTrigger: "请选择展开触发方式",
        selectControlsPosition: "请选择按钮位置",
        noLimit: "0表示无限制",
        input: "请输入",
      },

      // 公共组件翻译
      common: {
        formatSuccess: "格式化成功",
        formatError: "格式化失败",
        compressSuccess: "压缩成功",
        compressError: "压缩失败",
        validateSuccess: "JSON格式正确",
        validateError: "JSON格式错误",
        dataFormatError: "数据格式错误，请输入有效的JSON数组",
        jsonFormatError: "JSON格式错误，请检查数据格式",
        saveSuccess: "树形数据保存成功",
        exampleLevel1: "一级",
        exampleLevel2: "二级",
        exampleLevel3: "三级",
        option: "选项",
        option1: "选项1",
        option2: "选项2",
        option3: "选项3",
      },
    },
  },
};
